FIX Users removed upon upgrade

FIX the bug that removed the orion user when updating from a previous version.
It's exactly that. It has a value of 0 if it is a "uninstall" action and 1 for updates. The problem caused by the order in which these operations were fired: first, the complete new package is installed; then, the old one is uninstalled (and its scripts executed).