Creates log directory if it doesn't exist.