scripts: ext-toolchain: actually probe libc type on config generation