root.sh: Only check for patched packages when installed
Not all architectures have all packages (e.g. we don't have flash-kernel on amd64) so check if a package is installed at all before checking if it's patched.
Not all architectures have all packages (e.g. we don't have flash-kernel on amd64) so check if a package is installed at all before checking if it's patched.