Make sqlline.sh work better under cygwin.

We detect cygwin and set jline terminal explicitly; this is a workaround for
https://github.com/jline/jline2/issues/62.