Don't init the session in CLI mode
This prevents from PHP warnings when using CLI scripts e.g. installto.sh.