Fix repo-side of uploader, allow "uploadDirectory" to be empty