fix 'sudo -i and sudo su -'

as suggested by @docwhat in #448

This does not seem to fix `su -` though

Closes #448