Fixed detect shared library in pkgIndex.tcl file