grc: On Linux, respect x-terminal-emulator
grc: fix port type cache for empty types