[WAGON-431] process remote stdout stream first before stderr stream to
prevent blocking when stdout stream size is > 32K