Fix config file generation