Rebuild dir structure