Fix detection of icon themes

GNOME can only deal with icon themes that have an index.theme file
in their toplevel. It doesn't have any problem per se with a
cursors/ directory living in the same location. Fix up the
check to match this.

https://bugzilla.gnome.org/show_bug.cgi?id=710275