Fix formula build script