Fixed sed argument spacing
Changed --in-place behavior to make a correct backup
Added restore instructions to the output