Ensures directory for log file exists