updated build script to work with beak 0.2.0
updated build script for new beak interface