revert prev commit - works only for cygwin, not wingw