Fix detection of whether the current device is touch-enabled (fix pull request #20)