Clean up application listing

* Remove unneccessary backspace
* Sort application before trying to install them
* Run 'brew upgrade' at the end