improve project_name detection