Make sure log directories exist.