Creating the log dir if it doesn't exist