fix 'sudo -i and sudo su -'
Merge pull request #488 from SvenDowideit/sudo-su-448

fix 'sudo -i and sudo su -'