Package atomicfile provides an atomically written/replaced file.