Fix for 'lime upgrade' on Windows