Commit ec972526 ("Fix Windows build") essentially reverted the change it meant to fix, by readding write permissions to the directories on Windows.