fixed #126

uses now GraphicsEnvironment.getLocalGraphicsEnvironment().isHeadlessInstance()
to check if running in a headless graphics environment.
if so, the dialog is not showing anymore.