StdoutCapture: Fix bug if a plugin (or the core) uses gnupg (#2).