Plug small memory leak in run-shell

Don't potentially leak the command to run were it to fail.
Remove previous