Fix cf-upgrade's self-copy in windows.