updated for cygwin get logic