made the whole thing work with cygwin (and hopefully linux) in addition to mac