Allow usage as dependency of another project.

If installed as dependency, the `autoload.php` is not located in the phpmd root dir.
The snipped is stolen from the composer executable, see https://github.com/composer/composer/blob/master/src/bootstrap.php#L13-L23