Did you read this function globaly ? 
My function already make the difference between Centos and RedHat Like.

This function only set the CURRENT_OS var but only Debian, Ubuntu and CentOS will pass (cf the installer)