Handle old versions of the libcontainer config.

Libcontainer recently changed its config by changing the type of a
field. This commit tries parsing the config as the new and old types.
This is ugly. May be put a TODO to remove it a few months from now.