This script will now get the operating system and will fail for Cygwin.