Fix OSX compatible problem for sed.