Better detection for Debian versions

Re-uses existing Debian version parsing code when `/etc/debian_version` is found.

Fixes #505.