Small fix to Dir#glob, and make it work on darwin