Fixed for hosts without DISPLAY defined

Enabled for hosts without a DISPLAY variable (headless servers).