Make git revision detection more robust.
* configure.ac (git_revision): Use git rev-parse for parsing.