change how to handle cygwin