Fix elasticsearch config not loading properly