fixed ChildProcessMonitor to not fork ps command multiple times