Fix small typo resulting in a traceback for the apt_key module
Rejoin args list into a string for run_command when using an unsafe shell

This allows the use of an args list with leading environment variables,
which otherwise would fail due to the way Popen works.
Revert "Rejoin args list into a string for run_command when using an unsafe shell"

This reverts commit 4273cb2d8ead8f95fa0032da4082ffd7da338472.
Fix typo in run_command when sending data that is not binary
Rejoin args list into a string for run_command when using an unsafe shell

This allows the use of an args list with leading environment variables,
which otherwise would fail due to the way Popen works.