Changed SED call, hope it works on Ubuntu and OSX now

Basically we are creating backup files now, called xxx.sed and after changing
all the variables, we will delete all those files.