- Set subdirectory flag for root.
- Fixed case when file system cannot be traversed.
Merge branch 'emscripten' into devel