Refactor: cts: Sync up how output is printed between cts-exec and fencing.
These two programs were using similar, but not exact, code blocks for
doing output. There's no real need to have them be different, while
having them be the same will help in creating a more generic Test class.