Make stdout and stderr optional to support { stdio: "inherit" }