Backport autoload.php from symfony.