Fix issue #46

This is a temporary fix for issue #46 until the next Cobra release.
Ultimately, we want to be using the runAndCaptureOutput method of
the Process extension.