More robust installation script.