lib.php: supply CLI account credentials when run in CLI mode (maintenance script)