Do not use the sh variant of getting the git revision on MSVC, even if sh is in path, as MSVC uses cmd internally.
Use legacy PATH alias to be compatible with older CMake versions on OS X.
Merge remote-tracking branch 'upstream/master'