Atomic rewrite of .dna file.