[#858] clean up stats gatherer
[#2370] populate previous VERSION.json from upgraded VERSION