OSX safe? use of sed.