Handle download errors more gracefully; support CouchDB v1.4 by preserving the asn1 module in medic-core/scripts/prepare-dist.