Use Dir.glob instead of Dir[..] with sort to prevent different results

It seems that older Ruby versions (before 13.2) have a different order
than newer ones. This shouldn't happen with sort.