make sure that any file is not used twice

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