Speedup the find_file function

Speedup the find_file function
Merge pull request #174 from lochmueller/performance

Speedup the find_file function