Clean up sys-agent script