updated build script to work with beak 0.2.0
updated build script for newest beak head revision