Update rebuild script