version reporting: use git branch and commit if available