generalize target-file reading to better work with both fitsio < 1 and fitsio > 1 versions
generalize target-file reading to better work with both fitsio < 1 and fitsio > 1 versions

desihub/desitarget,desihub/desitarget