Used git --version instead of which to test if git is installed. This should work better on Windows systems.
Misc udpates.