[Linux] Fixed X11 vs KMS detection