Improve offline ::restore() and bootstrapping on Windows