wfFindFile() was deprecated some time ago and was removed in 1.39. This patch replaces the use of this function.