Fix behavior of nearest version locator in determination of ancestor commits.