Adjusted rebuild.sh to reflect changes