Fix crash if $DISPLAY is not set.