Improved build script.