FIxes `php artisan key:generate` failed due to used of hardcoded app path config.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #5505 from crynobone/patch/generate-key

[4.3] Fixes `php artisan key:generate` failed due to used of hardcoded app path config.