Update shell.lua

same 'ish as #408

Needs abit of changes to sh.lua aswell, creating pull for that.