A better fix for the is_project_file related bug.