Correct git detection.