Merge pull request #375 from zart/fix-relative-search-on-windows

Windows returns EINVAL on bogus filenames