recode without lxc-ps (removed from lxc)

I made a mod to the code to cater for the loss of `lxc-ls` from LXC from version 1.0. tested on Arch Linux.