Fixed issue with generating config file.