remove double /lib directories