test script: Change "pgrep" to "pcregrep" for better portability