check_skip_file() updated to skip folder

If there is a folder inside the spool directory skip it