An exact elliptic superpotential for deformations of finite gauge theories