Fix cartridge dependency dir paths in upgrades