mds: fixes for directory fragments.