allow trailing slash

Signed-off-by: Maxime Déraspe <maximilien1er@gmail.com>
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>