Dehumidification system for batteries