Fix profile rename on windows