[mv-dir] fix bug when move a dir like moving '/dir/' to '/dir2/'