fix regex to recognize target_class_name, also fixes build