[Util] Properly check /usr/[local/]share/icons/hicolor/ for icons.

Closes #1587.