fixed api changes for index.c

`git_index_find()` parameters changed with 11d9f6b304, this should fix as well #167