Use extension of found file.

Fixes #72