using a more reliable way to tell if we're on Cygwin.