account for cases where stdout and stderr might not exist