Move cli startup logic in inc/cli_init.php

argh, downloaded the file from github and didn't notice, fixing