repalce with
```
modpath=["easybuild", "easyblocks"]
if generic:
    modpath.append("generic")
return '.'.join(modpath + [module_name])
```