I've tried to run flow-upgrade under Windows 10 and it fails  Then I tried to do it with Windows Ubuntu Bash and everything works. So it seems like it's only Windows specific problem.