a little more automation in script ... not tested yet
looks like script runs correctly .. even if upgrade doesn't:)
3.1.0.5 upgrade works fine
script changes for a 2.4 upgrade ...
upgrades running smoothly from 2.4 and 3.1 ... still some tweaks needed