Add -git-version option

To easily check which GIT revision a binary was built from.
For instance to double check that your binary has a particular
bug fix. The output would look nicer if we had proper version
numbers; for now it will just be a hex revision plus a possible
"-dirty".