In verify-packages: handle either lib*.so or lib*.so.* naming conventions.