fixed sed on Mac