Makes copyModules independent of paths