Is the phone visible to adb? This 'used to work' but now that I look around the filesystem I notice that the bootmenu binary has been moved to /system/bin/bootmenu from its original location in (/system/bootmenu/binary). This is the actual bootmenu binary as can be seen by running it from a shell. Either the wipe script needs to be adjusted to keep that binary (and who knows else what has been moved, have a look at the original 2nd-init apk to see what the binary directory contained) or - probably more logical - the bootmenu binary should be put back where it was.
Those have been moved from moto_mb526 to the moto_jordan-common repo, see here and here. If everything in the "common_ota_from_target_files" under '#bootmenu' is all that is needed then the bootmenu binary and 'logwrapper" is probably all that's needed I hope. What should your script be now, to include these? I have no clue about scripting
But I will also test (tomorrow though) moving it back to /system/bootmenu/binary. In that case quarx needs to modify it in his repo too, in the file I mentioned above.