The development of what crop allowed the south to continue depending primarily on agriculture before the civil war?.