Ensure mocha wrapper returns correct error code

So much Zsh/Bash inconsistency with pipestatus behavior, sadly.