Added changes so that bin/*.sh files can work with CYGWIN under windows, too