improve package searching
reorder fai upgrading

when pf-fai is installed, xivo-fai must be installed before pf-fai is purged
reindent real-xivo-upgrade with tabs