Use gsed on OS X.