Fix cgroup root path detection.

The current logic assumes that cpu cgroup mnt point is <basepath>/cpu.
On some systems, its <basepath>/cpu,cpuacct (CentOS 7).
How about `path.Dir(mnt)`?