Prevent a PermissionError on Windows when trying to clean up orphaned packages