Better X-server detection