Change detect root path logic