Don't attempt to glob a path if there's no magic in it
Merge pull request #17280 from s0undt3ch/hotfix/check-for-glob-magic

Don't attempt to glob a path if there's no magic in it