detect cygwin properly, #11
fix unix detect, #11