Fix pgrep usage

For cylc/cylc#1166.