Enhanced install script (still not working)