Update user agent detection