script update: added tries option to wget