Auto-detect the available hook version