Switched IO::Capture to Capture::Tiny to correctly capture STDOUT