[DF-4501] Update distance generator tool for MacOS