Automated module concatenation with dependency management