added cygwin workaround for windows