Fix running under cygwin