hc-install: work around a bug in freebsd sed(1)

Apparently it does not properly handle a word boundary expression when a
'g' flag is used.