MDL-69975 core: Fix paths longer than 260 chars on windows