improve version detection

needed to call xivo-dist with right arguments