libcurl: Honor $SSL_CERT_FILE

This makes libcurl search ```getenv("SSL_CERT_FILE")``` for https urls. 

I'm submitting this as a pull request as I'm not 100% sure there aren't any security implications from this. 
I wasn't aware that ```getenv``` returns NULL if the variable wasn't found. Will update, thanks!