Fix installation script errors