Load previous version

I've occasionally found it useful to know what the previous installed version was on an upgrade. I've generalized the code I was using in Simplerenew and added it here. Please review.