Check which folders and archives should be packed before passing to tar command.
If user uses backup task with SKIP and skips one of the archives listed(uploads, builds, artifacts) backup create will give an error: Cannot stat: No such file or directory
.
This MR fixes that by checking for skipped items.
Additionally, compact everything to avoid TypeError: no implicit conversion of nil into String
errors.