Only set DISPLAY env variable if we are running headlessly