Standardizing sed across gnu and mac osx.