small fixes to glob & glob-stream
Merge pull request #2410 from Bartvds/def/glob-fix

small fixes to glob & glob-stream