apt: Consistent use of lists

Make components a comma separated list and add code to properly deal
with single-element lists.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>