adapt logic in agent installer to work with 5.x

With datadog-agent 5.x and higher, there is no logner a need for the
`base` package on any platform, there's only some requirements around
using the correct package on the right platform.

This changes both the logic itself as well as the testing suite for
versions.