Why are we creating an array with the glob results here? This looks like it would cause the sort below to be a no-op, since we are sorting a single-element array with the glob results as their own list within it.

I think removing this `Array[` bit and doing `files += discover_files.sort` is correct, and removes the need for the flatten.

But maybe I'm missing something?