Simplified rebuild.sh script