ensure log directory exists