Otherwise we could end up matching with a weird ".../.desktop" entry. BUG: 427979
mentioned in commit 0b5cbe40