if not (mod_path and cls_name) for the case where entry ends with a ".".