uwsgi_app.chdir is an array

So check if it's first member is not 0 instead.

Fix Coverity CID #971000, #970998.
emperor: Avoid integer overflow

Reported by Coverity as CID #971237, #971238.
Merge pull request #494 from xrmx/coverity-2312-4

More Coverity fixes