improve the matching algorithm for option -detect-sequence-files

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
add a file named RaySmartCommand for generated options

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>