Write conf files