show_object_with_name: simplify by using path_name()