Fix sed invocation to be compatible with Darwin sed(1)