stop empty stdout/stderr from propagating to final output