Bug fixes in download script for rda336.