common/hooks/post-install: reorder some hooks so that no unnecessary INSTALL/REMOVE scripts are generated.