Consolidate build target collection

Move build target collection to `atest_main` that contains other logic
for determining build targets.

Test: m atest && atest-dev atest_unittests --host
Change-Id: I8e35d20bfa9258cd760b07b1f76e026ba87dbcdb
3 files changed