Fixed sed for OS X