Fix autoload bug. Fixes #373.

Related to issue #373, This fixes the problem whereby locating the `autoload.php` in a non-standard composer install (using the `vendor-dir`option) fails.