Add support for configuration directory.