adding some lsb function missing in redhat, makes the script portable but adds unnecessary code will fix when  i figure out a more portable way of providing the