Update matchLFN for fixing not matching LFN. Previuos patch wrong. Fixes #4961