Update index.php

Require once on core files, to stop redeclare when composer has already done so.