[PATCH v3] cmd: Do not change errorlevel when setting environment variables