Added cli detection in init.php

Backend will execute if called this way:
php index.php --backend