Refining generation of config files