Write config files