zsh: posix compatible sed fix for zsh-completion

This reverts commit 56381287a16792b4c6410f07db68e02f3574c213, and
further fixes things.