fix an issue with filesystem.findFirstMatch, would not look in every haystack, reported by @mlabod, no ticket