fixed threshold finding in find_dist_histogram.py