copy modules with dependencies dynamically loaded from modules.dep