fix interleaving of child stderr and stdout, print stdout when a child fails and has stderr