Fixed segfault in case of missing configuration directory.