Fix find exception on Windows