Fix _shell_wrap call in run_local