MDL-23590 refactoring cli install before adding install_database.php + fixing problem...