Do not use get_redhat_major_version anymore

get_redhat_major_version does not seems like a defined function.
Let's use the CODENAME instead.