switching to pgrep to find pid

This seems to be more widely available across distributions. Fixes #7
Merge pull request #18 from mrkrstphr/fix007

switching to pgrep to find pid