Check path for escaped globbing not only when ls returns 0 elements.

Check for escaped path for each file (when non-escaped matching failed) to not skip files with special chars within names.
Fix for bb#650.