findlib.sh: improvements

posix compliance, use ldconfig to get additional LIBDIRS,
also respect LIBDIRS env variable