only display icon dirs with index.theme files

This limits the icon directories to those with index.theme files,
and prevents directories without icons from getting displayed in
the icon dropbox.

This commit fixes #2589