fix sed failure on mac.