checklibs.sh: newest didn't work when newest version was first in list