This code upgrades by moving files currently in use aside by renaming them
as <fname>.OLD. This risks leaving .OLD files lying around which will
interfere on the next upgrade. Change here to try and delte the .OLD
files both before and after the upgrade. Of course, if this always
worked after the upgrade, then there would be not point to this. ;)