Fix issue where some paths were duplicated in upload list.