Use absolute target references in pants.ini and TargetPlatform for top-level targets.

This also fixes up tests which neccessitates a fix
for JarPublish handling of internal deps.