Updated the way a reference genotype is determined. Now the script also
takes 0/. and ./0 as a reference.