Fix the coverity issues

This PR is to resolve issues raised by coverity.

BUG=XWALK-2928
nit
```
LOG(ERROR) << "Failed to create directory: "
           << suggested_directory.value();
```