Try to fix an ordering issue

Sometimes the data dir rights get changed after ES is started causing it to fail.