fix pathing issues in upload script