Bugfix/find function fails on undefined path

Fixed a bug(#3) where find failed when it was given an undefined path, added a test case, hope it helps, it was the smallest thing imaginable, but still.. :)