In _drupal_bootstrap_full(), you can see the following:
<?php
require_once DRUPAL_ROOT . '/'. settings()->get('path_inc', 'core/includes/path.inc');
?>
This is a perfect candidate for the DIC. Conditionally switching PHP files is an old methodology, and we can do better.