For #26314 - added migration of tank.bat/tank binaries to core upgrader

- This is essentially the same code from previous migrations but with an extra check to ensure that the tank.bat/tank scripts are only updated for pipeline configs that share the same core.
- Also updated script to use sgtk/Toolkit instead of tank where appropriate (You can ignore these changes - sorry for the pollution!)
maybe this should be broken out into a separate little method? It's repeated twice! :dog: