improve version comparision

Signed-off-by: Yi Qingliang <niqingliang2003@tom.com>