Add retry to curl download of tool in cloud init

Forward port of pull request 428

Add retry arg to curl used to download tools in cloud init.
Fixes lp:1349989