use proper in-place sed