added checking for vendor folder