Upload json manifests and create latest file
Remove build iteration
Use proper file i/o