Fix Debian repository detection