Fixes for some minor bugs in the argument checking as well as it appears we need a shell to exec in