Use extension of found file. Fixes #72
Merge pull request #76 from mrjoelkemp/fix_loader

Use extension of found file.