Re-add IF check around GIT_VERSION_CMD

Previous removal included a APPLE check which I'm told needs to remain.