Fixed preinstall script