Check for composer autoloader

Is not always true that first autoloader is a composer autoloader.
using `spl_autoload_register` with `$prepend = true` will produce errors as:

*Fatal error: Cannot use object of type Closure as array in vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php on line 161*
or similar