Detect user shell as opposed to login shell.

Fixes #256.