Refactor build_choc.sh

Refactoring build_choc file