Upgraded build scripts to newer version