Check $beUsername only when in cliMode.
Otherwise notifications also get enabled when called from within the scheduler.