Fix shell detection for login shells

Login shell may have a command name in the process table starting with a
'-'. This is the case in particular on Mac OS X.
We now remove that '-' in the shell detection code.
Closes #5. Thanks to @LudovicRousseau for the report.