Update build script to retry once if the first download attempt fails