Add support for bash-like globs through 'extended' flag