Fix bad syntax in upload when build a path. Skinny-down overhead to just dir lists