Adding proper shell detection for Cygwin.

`getent passwd $USER` can be used to detect the shell for a user on Cygwin, as well.