Handle logging differently, thanks to R16B01
respect the profile's log_dir if present
ensure target directory before attempting to open log files
re-instate `framework' logging via ct:log/2

Thanks to a patch from Peter Andersson
disable framework ct level logging in older versions of OTP
Merge branch 'release-0.8.5' into stable