Fix sed bug with multiple w to same file.
2 files changed