Don't use pgrep -q.

Linux pgrep does not support the -q option.