fix detect default root path