Does it mean that on windows, system dates for files are managed in another way than on Linux?
May be another option could be detecting that we run on Windows platform and use another method than `lastModifiedDate()`?

I think `fileInIndex(String)` will be quite expensive. Also wondering why you set size to `50000` and not to `0` as you only want to count...