Revert "Make sed in-place more portable"

This reverts commit d5974e248118182c9e6993be642a120110b6d4ae.