hadrian: queryTargetTarget should be replaced with targetStage
The queryTargetTarget function assumes that all stages will have the same target. We want to remove this kind of assumption from the build system and instead use targetStage to determine dynamically what the target for a particular stage is.