Handle HTTP errors when updating the bootstrap script from the cli.
Simplify logic.
Merge pull request #471 from s0undt3ch/hotfix/handle-http-errors

Handle HTTP errors when updating the bootstrap script from the cli.