Tweak errorlevel checks.
Update from author.