fix globbing installs again.

e.g. 'dnf install python-zope-*'.

Also see RhBug:864710 where this was reported originally. This time add a proper UT.