Updated postinstall hook