better auto-detect user-agent on linux