Use cat + EOF to write config