Fixes #5306 Make sure console command works as expected when `php console core:update` is used instead of `./console core:update`