Improved logic for Debian.