upgrade es to 1.3.2
replace sed command with plain groovy