- fixed error on returning root directory
reduced the number of debug output