PDI-8971: Added code to prevent splitting inside glob

Tested on QA cluster with various glob and file formats (braces, question mark, asterix, none)