move gem path fix to cartridge