Update uninstall script

Reverse the order of brew packages and other processes in the script