Update to fix problems with process exiting on windows

Unfortunately was not able to get the cli test working agin because of not
being able to stub the return value from process.stdout.bufferSize.