Fixed issue throwing a null exception when a config directory is
null.