Adding proper shell detection for Cygwin.