fix detection of seq with only one file

* Fix when eDetectionSequenceNeedAtLeastTwoFiles is disabled.
* Add an option to use the first number instead of the last one.
The option is eDetectionSingleFileSeqUseFirstNumber.