Adjusting dir structure for modules