Fix check_container_running to work with any versions of LXC

The original 'check_container_running' can only work with lxc 0.9.0,
but now can work with any versions.