Update to work on both RH and Debian-based systems.