Fixed bug in vendor-dir support