diff-tree: use new base_name_compare() helper function