Fix updater crash on windows

Fixes the updater on windows