Changed the conditional used to find the z=0 snapshot to something that will work when the scale factor is not exactly 1.0