support both debian and redhat