kpatch-build: fix gcc version check on ubuntu

Is it always the first entry that we care about? Any chance the entries get reordered?