Update code to identify TCSPC files more robustly and add check to ensure background value is not set to a value above the minimum data value