[zsh] Add syntax checking workaround for zsh < 5.0.0