Use sed regex compatible with Mac