Fix IndexCompilationException because of a directory which wasn't created