Fix debian detection routine