fix a crash when running git on a cygwin host