[test spec] Rebase linux/mac test paths with respect to root_build_dir

This cuts off the leading //.

Moreover, we fix a bug in test.gni in which the location was being
recorded with the target_name of the spec instead of that of the test
template.

Change-Id: I691134596f27d38a36dc355c8fa0ee5519ac68d2
2 files changed