Not reindexing file if it's dirty but hasn't changed

For example, for have alraedy reindexed file so no need to reindex
it again if it didn't changed. Fixes #12.