Fixes deprecation warning for find

Fixes #20
Merge pull request #21 from leonkunert/master

Fixes deprecation warning for find