Update the agent setup scripts.

Refs #6107