fn join_pipe_output( reader: Option<JoinHandle<Result<String, String>>>, stream: &str, ) -> Result<String, String>