fixed init.d to work in redhat