sandbox: Use os functions to read host device tree