Detect debian version using /etc/debian_version, not /etc/os-release.

This caused issues since /etc/os-release is only present on debian 7.

Thanks to Garik Piton for reporting this.

closes gh-274
v0.17.2 - Fix platform detection on debian 6 and older.