Add retries to remote_file usage.