Fix sed mac incompatibility