Patches to check ES version instead of module version.

Only do module detection in package install portion.