[TO_STAGE] Make sure we call the hooks on the correct cartridge by reading

ident from the cartridge_dir