Updating *nix run scripts according to spacepluk's comments

Quoting the moai bin in the check, changing bash to sh.  Also exiting
on error.