Create missing directories for json files during build