A bit of improvement to the file finding logic.