Create log directory if necessary.