I haven't found a solution to the above problem yet, but at least I have found a way to install the package without errors:
- Start from a clean backup of the officelite virtual machine
- Install the directoryloader package from the Smart HMI menu (avoid installation in Workivisual and then deploy to the officelite)