[GH #892] Fixup IO::CaptureOutput removal

Fixes also #1158 windows tests, where I do not have IO::CaptureOutput installed.