Refactored cygwin related files