Updated build process for module dependebcies