Fix dir.glob sorting across platforms.

On some OSes, the results of ````Dir.glob```` will not be sorted alphabetically, this makes it consistent across different platforms.