Sed: Inplace find and replace