- Set subdirectory flag for root.
- Fixed case when file system cannot be traversed.