refactor build_choc.sh