Update some user agent checking logic.