cli: only output module or PD goes to stdout, everything else to stderr