Pass fd in addition to the pipe to remove_redirection in stream.Redirector