makefile: tweak sed substitution patterns