I am having the same problem you described. You said you edited zmsetup.pl and zmupgrade.pl.

Could you share what changes you made. I would like to see if your approach fixes my problems.
...