Fixed fatal error in the pre install hook.