Fix file.managed backup feature on Windows

Fixes #16831