Add retry to curl download of tool in cloud init

Add retry arg to curl used to download tools in cloud init.
Fixes lp:1349989