fix git version detection on OSX