Screwed up on that one:

See index.php, which preceeds bootstrap.php, the main directory is set there. So no need to check a few lines later.