removing glitches between debian and redhat, some modifications for redhat made script break on debian

Signed-off-by: antonioribeiro <acr@antoniocarlosribeiro.com>