Fixed issue with the agent script not handling the result of the Strava upload correctly.