Updated build-machine script