remove BASHism in Makefile
workaround limitations of BSD sed