Fix a bug in project-rgrep