sed -i isnt very portable.