histogram: Reference file search improved (4)

Do not use a reference file identical to file of interest.