fixes in upgradev2 script
Merge pull request #118 from matiu/bug/updagreScript

fixes in upgradev2 script