Use correct dirname for cacert.pem