PAAS-157: Making the init.sh generic to CentOS & Ubuntu

Common init.sh script to work with CentOS and Ubuntu.