Remove commented code.
If the log directory doesn't exist, create it.