handle more cases when resolving root device path