check if apt-key list works first, check as root

if the .gnupg directory does not exist, apt-key list will fail, and
the subsequent commands will error. If the directory does not exist
we can safely assumed the key does not exist
add the key as root
appending to source list must be done as root

Not as pretty as fancypath but works