Fix regression and improve JInstallerAdapter extension detection