[PATCH 1/1] cmd: refactored setting of 'errorlevel'