Smarter install script