ME: refactored 'get_path' to allow finding of nodes that are nested