Write configuration files