Fixed minor bugs in testCLI command (when running as global).
Reworked nested debug-enabled process stdout/stderr proxy.

Signed-off-by: marco.minetti <marco.minetti@novetica.org>