fix cygwin detection