Add support for patch vendor libs; Refactor file filtering