be more gentle when redirecting stdout and stderr to make passenger 4 happy - refs #28