updated faulty preinstall script