Fix config file generator up a bit better.