Update setup file

Wrap all code blocks inside "until" loop to end the script until it reaches the last installation commands.