get_node_for_path (unoptimized)