Check for gzipped index first (so gz and non-gz bai files can co-exist).