Instead of having to update these flavor.rb files every time a new version of CentOS/RHEL come out let's dynamically pick up the version (7,8,9) from the machine. This was inspired slightly by the Rocky Linux guest flavor.rb.