Allow config.dir overriding

Maybe this should be expanded to other options.