fix random invalid latest version for nuget + avoid destroying vcs private dir