Move gcc version check to the right place

after build-essential is installed and
before kernelpatch is called