treemd: fixed the display when the target is not the current dir