Fix invalid gcc version check