Since recently, we also have a new IMAGE_SUFFIX '2021q1-centos8'. We cannot rely on image_suffix_is_latest() anymore, because this prefix does not qualify as 'latest'. If one needs to enable a feature that is only available in master, then here is a way:
if ! image_suffix_is_master; then # Patch the configuration files fi