handle old/new auth_token/httplib versions

Change-Id: Ie92aa10b8707d9c603ffe4d88246e0af5d2dcbfe