replace '.' with '/' globally in moduleName