Fix version.sh when it's run outside of the git working directory.