Fix platform version detection for Debian/Ubuntu