Moved pre-update-cmd to post-update-cmd
Merge pull request #2332 from laheab/master

Move pre-update-cmd to post-update-cmd, solves inconveniences.