[osx] Fix detecting icons