importer: Retrieve names while iterating search path

Previously, only the file type was requested. Even though the name was
not requested, query_info still returns the file name for non-symlink
files, so this bug went unnoticed in most cases. However, when there was
a symlink in the search path this broke.

Closes: #154
13 jobs for 154-fix-searchpath-symlink in 39 minutes and 44 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Source Check
passed #32186
cppcheck

00:01:59

passed #32187
cpplint

00:08:10

passed #32188
eslint

00:00:58

passed #32185
fedora

00:04:20

 
  Test
passed #32189
fedora_clang

00:06:13

 
  Thorough Tests
passed #32192
coverage

00:24:32

passed #32191
installed_tests

00:06:56

manual #32196
allowed to fail manual
lts
manual #32195
allowed to fail manual
no_graphics
passed #32190
no_profiler

00:04:01

passed #32193
sanitizer_gcc

00:10:41

manual #32194
allowed to fail manual
valgrind
 
  Delivery
manual #32197
allowed to fail manual
packaging