updated root directory detection
Merge pull request #15 from buhuru/master

updated root directory detection