Update build.sh to properly detect and cleanup flashable zip