opal_get_version.m4: use better "git log" command

For when you have a git repository, this is a bit more succinct form
of getting a git hash of the HEAD.