Use zsh conditional expression instead of test builtin.