Might be worth catching the IOError too in case git is not installed.