Fix problems in FetchTaskSelectorsBuildAction.

This is used by TaskSelectorCrossVersionSpec that is failing on some machines.