Remove absent folders from the tree