Updated runtests to use a process buffer

This has many advantages most significantly we change show the buffer
depending on the exit code.