support centos6.5 and ubuntu12.04

test case work both distribution