Smartening up the installation script