As per FIXME, CmdStream could have deadlocked if a command printed enough on stderr. This commit fixes that, but still keeps all of the stderr output in memory.