Fix detection of whether the current device is touch-enabled