Make sed expression in Makefile compatible with BSD style sed