cleaned up build script and added creation of backend.json