Improved installation script.