add function for fixing git repos under cygwin