Add a updated version of script for creating the release tarball. If TAG is set the TAG is used otherwise it is tried to detect the last TAG using git describe.