Fix rewriting of existing files.
2 files changed