Fixing bug with detecting an upgraded version of firefox, added root testing and exit codes.