Updated to allow the Protected Authentication Path to be set only if an X server display is available