Change sed i\ usage to something Solaris' sed can handle