update build scripts to latest master