sh: fix build regression with CONFIG_OF && !CONFIG_OF_FLATTREE