added a if/fi for CYGWIN