Changed subprocess to glob when searching files.
It is a better and safer approach.
Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>