added code to handle the case when no dicom file is found in the tmp directory tree