ENH: improve file finding