Allow setting of git_commit, version, and dirty via shell varables

This is particularly useful is building from a tarball instead of from a
checked out git repo (as all Linux distributions do)