Why this complicated? Just sideload the Magisk flash file in Recovery and let the Magisk App install the rest.1. Download the zip from the CR Droid site
2. Use payload dumper to extract the boot.img
3. Copy to device
4. Patch with Magisk
5. Copy off the device
6. Boot patched boot.img from fastboot
7. Direct install from Magisk and reboot