optimise getFullPath() method of common_node