Fix old-style process monitoring matching.

Fixes ZEN-8739, ZEN-8743, ZEN-8958.