Apply search fix on file:// directory entries

The search highlighting fix introduced in 20fa345fe5862fd4fb908c4852bc41d0a9f45c55 is applied to all file:// URLs. This patch corrects this behaviour to ensure that only directory listings in file:// urls recieve that fix.