Fixed applications search provider

Fixed applications search provider when the result set contains menu elements with nested sub-folder paths (like Wine creates in ~/.local/share/applications/wine/[../..])