cache_name_compare(): do not truncate while comparing paths