Adding Cygwin detection

Added ability to detect Cygwin consoles by checking the tmp directory - when run from a Cygwin shell, it's usually something like C:\cygwin\tmp. It checks to see if the tmp directory contains "cygwin", and if it does, assumes it's running from a Cygwin shell.