Restructuring file globbing; now properly globs directories matching a pattern.