Adding OS awareness for RHEL and Ubuntu, and appropriate init.d file for each