fixed way to check vendor path