switching to pgrep to find pid

This seems to be more widely available across distributions (well, tested Ubuntu, Slackware and FreeBSD). Fixes #7