On OSX, sed -i has a mandatory argument.