Process_Folder: enhance check for directory path