Make sed -i work on OSX