Implement file type flags for Utility::Glob.

Fixes #5123