Important bugfixes

Fixes issues when deploying the monitoring on CentOS/RedHat
redhat-old stands for centos/redhat < 6.6 and fedora < 17
redhat-new stands for centos/redhat > 7 and fedora > 18