Set fileformat based on the OS