Adding support for config directory.