Add automatic detection for old git.