Run headless on Linux if $DISPLAY is not set.