Add retries to remote file download