Make in-place sed command portable.