Add root directory for ftp server. Fix some bugs on huawei p6.