Add option to use HISTOGRAMS environment variable to overwrite default output filename