cgroup_test: Check libcgroup-tool and environment before starting test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #27 from liyangfnst/cgclear_fix

cgroup_test: Check libcgroup-tool before starting test