Fix static metadata issue

- Actually use the computed metadata hash in the update script
- Fix a typo
- Shorten a verbose loop to one linq.Any() call.