make exec_code run without a shell
don't need to check venv, raise cmdexecutionerrors in virtualenv mod
Merge pull request #15704 from thatch45/exec_code

Exec code clean up