suppressing errors when dos2unix fails in write_file