Optimized configuration and install script.