Make code in get_tag_icon() more readable

Also use the win32 installation path instead of assuming it's at
`pwd`\share\icons.

Note: I didn't push this myself because I'm not sure it's more readable to everyone or just me. It should be functionally the same as the old version except for the win32 installation dir (untested).