Fixes issue where the logfile can't be created if it doesn't have a folder to reside in.
Merge branch 'develop'