cgroup_test: Check libcgroup-tool and environment before starting test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>