Fix git version check for systems with custom git builds

Where git --version can print e.g. "git version 1.8.3.4 (Apple Git-47)"