JSON to envdir compatible file structure