Ensure that git 1.7.5 or newer is installed

Fixes #2651