Update pi-builder.sh

Shrink the code, merge the functions