Add retry to download remote package exec

This should solve the issue when a wget or curl fails at times due to connection issues.