A divergence theorem for pseudo-Finsler spaces