Cygwin support in setup module

Added basic checks to setup module for cygwin.