Update deploy script (more robust!)