The JCMT and Herschel Gould Belt Surveys: a comparison of SCUBA-2 and Herschel data of dense cores in the Taurus dark cloud L1495