build_tar.sh: fix version fetching from git tag