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
Merge pull request #2791 from joequant/icon-menu-fix

only display icon dirs with index.theme files