repair various bugs with prepare script for docker

FIX bug with newgroup for docker change to sg.
FIX installation of docker using direct calls to module.
FIX CLONE missing retrys on update and clone operations.

Change-Id: I6abb2ba5bf97d72976b89792431be821a19db9f9