Check for headless environment
https://github.com/fgp/AirReceiver/issues/10