Tweak some sed patterns in Makefile for OS X compatibility