- better root dir detection