Use sed instead of perl for re-replace

sed can do in-place edits on Windows without backups, which is very
handy when you have version control.

This is vastly preferable to perl's behavior, which was to empty files
when it was denied permission for the in-place edit.