Modified the glob_expand_one() function to check the args against the