Merge glob support by bgmort, fixes #8