The logic for expanding the list of patterns into a list of actual RPM paths was duplicated for both exporting a directory and file. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>