Fix function in install script