Update contributors
Use an array for checking package status with dpkg

Rather than repeating the same commands over and over again to check the status of each individual package, loop through an array of packages that require the same commands and then pass those that need installing to another array for that purpose.