added code to do the rebase on windows