fixed builder script to separate sections between Mac and Linux