samplesheet regenerated when the existing file does not come from the currently pending run

ready for code review, pending a test against dev system