Refresh existing update sites after installation

- Also hardcode the component name, it's required when we want to refresh existing update sites after installation.
- Improve code robustness