zsh: Revise error handling in Gentoo-specific comfort functions.

Revise error logic and make use of zsh option ERR_RETURN.