checking plugins paths before adding them to PATH