Who was the commander of the American forces defending South Carolina