set S_IFDIR flag in _createRoot
Merge pull request #45 from lunastorm/master

set S_IFDIR flag in _createRoot