Fix init.d scripts on RHEL/CentOS systems