replaced pgrep

pgrep isn't available on OSX prior to 10.8, replaced it with grep & awk
Merge pull request #464 from secret-bitcoin-login/patch-2

replaced pgrep