More configuration options for uploading files. Fix upload of path DLLs.