Fix permissions regressions created by PR #67

Commit 3cbb6ba8ff06d8e2b68e00d44b86c3b6a8f64870 from PR #67 breaks `$log_dir` permissions and also tries to manage `$ssl_dir` as a file.

This PR fixes those.