Fix updates on Windows

Fixes issue #62

Failed Windows updates were caused by trying to rename the old executable while there was still an open file handle on it.