JSON/YAML config loaders: create the loaded file if it doesn't exist already and fix saving JSON.