framework: move fetchEpoch to etcdutil