Ensure user selected UUID's are valid.
Set the generated UUID to have the value of the user generated one.

If a user decides to manually set a host UUID, then save that UUID so
that subsequent removal of manual UUID settings won't cause the UUID to
change. This is useful if you want to start using automatic UUID's when
you weren't previously.
Globals should be in CAPS.
Woops, tiny bugfix.