Allow rewriting path of modules in define.