Simplify obtaining version numbers from git.