fixing issue where scl was used even in fedora
(cherry picked from commit f7f9fea08273a8c9c44cbfc11b2890b059726636)