Remove dependency on pgrep