Fixed stupid bug with elasticsearch module and elasticsearch directory having the same name.