Workaround: retry curl to wait for elasticsearch