Write out thread config files