Add nvm_tree_contains_path function