Update agent.sh