Various errors when upgrading SCM on Windows