Tweak wording in X11 check and use the same X11 detection function as ENV.x11; also move that function into utils.