Add target prepares in the metadata

Also parse the file base name as the module name when the module is not
following the per_test_case_directory rule.

Test: run cts gts dist
Bug: 429522133
Flag: TEST_ONLY
Change-Id: I772b53a34367f827f7cd203569a87f66aff92cb0
2 files changed