Fall back to composer's autoload.php if existing

This allows usage of PEAR as a dev dependency
rather than relying on the global install,
amongst other things. Same logic that's already
in place for 3.x
Merge pull request #2678 from chillu/pulls/composer-autoload

Fall back to composer's autoload.php if existing