move sed to a var and use gsed on OpenBSD