Workaround for systems where pgrep isn't available