Set the icon kind to stock if it matches any stock icon

We also have to remove the extension here, as Ubuntu likes to ship scaled down
versions of the stock icons.