Fix bug when check a exist cgroup file.