logging: Use a default logdir of "logs" always.
ssl: Fixes for cert logging, cert check mem leaks and other checks.