Fix process metrics collection on some operating systems.

Some systems' 'ps' command expect no space between -p and the list of PIDs.