Use emulate sh and remove some marginal zsh options.

This should simplify things, and make zsh work more like bash.