grep for tail not tailf when checking if process exists