Add support for pdf file vendor dir is missing