Templating dynamic configuration files