Ensure that the configuration directory exists.