Update elasticsearch version

Also fix the variables being used to work in the template