Fixed artisan crash when modules directory is missing