Consolidate Windows/Unix upgrading and check MD5 (fixes #1138)
Implement manual -upgrade-to option