Avoid KeyError in windows builds