Fix issue FACT-715: LXC detection code raises errors on old OpenVZ.

This patch fixes issue FACT-715. It works for me and it should not break anything.