fix service command to work both in redhat and debian systems