Try to optimize build script.