Get the version from git.

Also use a more portable method of making tarballs.

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