change export_pattern logic for glob