[NSM] fix uploading files to root dir