histfactory: write_measurement add output_path argument