code to check if a new agent update is available, also to gather the update data if available