Fix pre_install hook