fix 'sudo -i and sudo su -'

as suggested by @docwhat in #448