Get the version from git.

Uses autorevision from https://github.com/Autorevision/autorevision.