Fixed version detection in Debian scripts.