support for autoload.php in non standard 'vendor' directory

With composer it is possible to specify vendor directory name:
```
    "config": {
        "vendor-dir": "vendor2"
    },
```

current code assumed that it is always called 'vendor', this patch adds additional check in relative path (ignoring vendor directory name)