Fixed for hosts without DISPLAY defined

Enabled for hosts without a DISPLAY variable (headless servers).
Merge pull request #1 from pacovi/patch-1

Fixed for hosts without DISPLAY defined