Add stdin and stdout redirecting to the runner.