fix preinstall script