Correct error in Python bindings that prevented use of custom profile.
(cherry picked from commit 5774843c1157e488074ece29b5bc0977608457db)
Make sure smolt directory is created before trying to read from it.

This makes sure the configuration storage directory has been created
prior to attempting to use it. Smolt typically stores to /etc, and
assumes the packager has created its desired directory. There is
probably a cleaner place to put this code, but this is a catch-all for
several files read from that directory.

Fixes #11803
(cherry picked from commit 10be7341345986d4c0e508c0a9791d35dca43770)
Logging: Fix a bug in flush

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
(cherry picked from commit 53c5ef0a64df6bf542ec45da0b98f762ba93d0cc)