Witten index in supersymmetric 3d theories revisited