Primitive path_lookup()