Move the Elixir version requirement check to a better place

Supposed fix for #1451.