Implement automatically reexcuting the initial command if a new pkg version has been detected and this upgrade has been performed