[redhat] check license type for redhat

Tested by unit-tests