Fixed sed commands

They were wiping out the files when run (oops).