Use == 0 instead of #zero?

The latter can cause problems if the value isn't as expected.
It's weird for an exit status to return nil, but if it weren't for this
additional failure, it may be possible to see the actual problem.