Added support for custom vendor-dir directory