Hi Lucy,
Yes, that's right as far as the equations being logistic beta = Z / sqrt(sum(eff_N/4)*MAF*(1-MAF)) and SE = 1/sqrt(sum(eff_N/4)*MAF*(1-MAF)). Great catch! I think METAL outputs sum(eff_N), but you'll want to confirm that, which you would then divide by 4 in the context of these equations.
As far as the slight discrepancies between Z in your input and output file from munge, the reason for that is that munge backs out Z using the p-values in the summary statistics files, and then attaches a sign to it based on the effect column (whether that be a Z-statistic, beta, OR, etc.). So the difference should be attributable to rounding, and really minimal, but if you are seeing any larger differences let me know and we can take a look.
-Andrew