Modified version of script, which doesn't assume the executing folder is the same as a git checkout, e.g. if the tarball is produced elsewhere (like in a Jenkins separate job)