Isolate OSTYPE checks for cygwin a bit
Handle cygwin jline issues

fixes #850