allow setting of module dir in config main