updated pgrep in bash to be more accurate