Ordered rsync filelist to have repodata files last.
Added logic to handle listing file if repo_id were provided.