if a string was passed into the yara_file_processor.py constructor instead of a Path object and there was an error in the validation checks there was a crash as str does not have a .name member
this was fixed by checking if the object is a str object and casting it as a Path object to derive the name