fix osd prepare dir bug