fixed problem with uncompressed NIfTI files
fixed bug checking file type of S3 file