PortalKit: update DirTree to suit for new index requirement