remove duplicate before getting library paths