octave: set plotting preferences only if $DISPLAY is set
octave: check for existence of history file