fix IndexCommit.equals to compare version of the commit instead of segments filename, in addition to the Directory