Updated var name in cli.js.
Fallback to old exit code handling in conf/cli. Fixes config check on GUI open. Added test.