refactor(core): resolve front controller paths from __DIR__
Both paths were relative to the current working directory. They run before
vendor/autoload.php, so they use __DIR__ rather than the path constants.
vendor/autoload.php, so they use __DIR__ rather than the path constants.