Changed platform check to accounts for Cygwin.