fix commit failure under cygwin/git
Merge pull request #229 from phus/master

fix commit failure under cygwin/git