fix a bug which caused updates on windows to fail if the program had already updated once before