fix pre install script