Fixed problem with spaces in target names.
Removed some superfluous debug, made list include sync status.