[5.0] Fixed artisan optimize crash

`php artisan optimize` throws an exception `RuntimeException` with the message `Cannot open /home/slik/Projects/Web/laravel-dev/resources/config/../app/Providers/AppServiceProvider.php for reading'` because the config folder was moved to the resources directory, and the paths in the `resources/config/compile.php` are not valid anymore.

This patch fixes the problem.