check lib dirs as well