makefile: doc-build: improve compat with BSD sed