Merge pull request #480 from mxr/git-file-mode

Check git mode on Windows