fixed function IMPUTE2_fileIO_checks
addition fixes to the function IMPUTE2_fileIO_checks