fix for sub_path remote upload.