Fix dapp.json loading and defaulting when not avail