Adding check for SSL in download URLs

Please merge this only after  https://bugzilla.mozilla.org/show_bug.cgi?id=973311 is resolved.