Fix log directory permissions.