Add support to read/write directory of config files