Fix static build against devel/ncurses by correcting how zsh tries to link
against the terminal libraries. No PORTREVISION bump as this shouldn't really
change the generated packages.
PR: 181720
Submitted by: wulf@mail.mipt.ru
While here, fix a spacing nit and wrap compound commands in parens.