Put getTurboVncFlavour ("X11" or "Java") in its own function.