Fix debug mode. It was not loading the commands.php file. Using static paths and using other functions.