Generate a unique distribution name

If the node wasn't started in distributed mode, generate a unique node
name.

Also: use erlxc:name/1 to create the cookie instead of base64 encoding
random data.