improve to work with older pgrep versions