Fix pgrep invocation on Mac OS X

Ensure to always use /usr/bin/pgrep, as the pgrep from proctools that
may be in path is not compatible. Limit the regex to use basic syntax
only for compatibility.