#153: replace existing file with updated content

Resolves #153.